package morenoapp.model;

import java.awt.Dimension;
import javax.swing.JComponent;
import javax.swing.JList;
import morenoapp.components.workplace.WorkplaceView;

/**
 *
 * @author dmitry.mamonov
 */
public class StepsNavigator extends JList {
    public StepsNavigator() {
        super(WorkplaceView.values());
        int cellheight = (int) ((JComponent)getCellRenderer()).getPreferredSize().getHeight();
        setPreferredSize(new Dimension(200, cellheight*WorkplaceView.values().length));
    }
}
